<?php
/**
 * Magento
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the Academic Free License (AFL 3.0)
 * that is bundled with this package in the file LICENSE_AFL.txt.
 * It is also available through the world-wide-web at this URL:
 * http://opensource.org/licenses/afl-3.0.php
 * If you did not receive a copy of the license and are unable to
 * obtain it through the world-wide-web, please send an email
 * to license@magento.com so we can send you a copy immediately.
 *
 * DISCLAIMER
 *
 * Do not edit or add to this file if you wish to upgrade Magento to newer
 * versions in the future. If you wish to customize Magento for your
 * needs please refer to http://www.magento.com for more information.
 *
 * @category    design
 * @package     base_default
 * @copyright   Copyright (c) 2006-2014 X.commerce, Inc. (http://www.magento.com)
 * @license     http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
 */
?>
<?php
/**
 * Create account form template
 *
 * @see app/design/frontend/base/default/template/customer/form/register.phtml
 */
/** @var $this Mage_Customer_Block_Form_Register */
?>

<form action="<?php echo $this->getUrl('complex/account/modifyedcreatePost') ?>" method="post" id="form-validate">
    <div class="register-two">

        <div class="buttons-set buttons-registers">
            <div class="address-bor">

                <div class="input-box input-address">
                 <select id="cmbProvince"></select>              
                    <!--<select  id="region_id" name="region_id"  title="<?php echo $this->__('State/Province') ?>" >
                        <option value=""><?php echo $this->__('选择省份/地区') ?></option>
                    </select>-->
                   
                    <!--<?php echo $this->getCountryHtmlSelect("CN") ?>
                    <script type="text/javascript">
                        $('region_id').setAttribute('defaultValue', "<?php echo $this->getFormData()->getRegionId() ?>");
                    </script>
                    <input type="text"  id="region" name="region" value="<?php echo $this->escapeHtml($this->getRegion()) ?>" title="<?php echo $this->__('State/Province') ?>" class="input-text"  /> -->

                </div>

                <div class="input-box input-address">
                    <!--<input type="text" name="city" placeholder="<?php echo $this->__('选择城市') ?>" value="<?php echo $this->escapeHtml($this->getFormData()->getCity()) ?>" title="<?php echo $this->__('City') ?>" class="input-text" id="city" />-->
                    <select name="create_address" id="cmbCity"></select>
                </div>

                <div class="input-box input-address">
                   <!-- <input type="text" name="city" placeholder="<?php echo $this->__('选择区/县') ?>" value="<?php echo $this->escapeHtml($this->getFormData()->getCity()) ?>" title="<?php echo $this->__('City') ?>" class="input-text" id="city" />-->
                   <select id="cmbArea"></select>

                </div>
                <div class="input-box input-address">
                    <input type="text" name="street[]" placeholder="<?php echo $this->__('输入详细收货地址') ?>" value="<?php echo $this->escapeHtml($this->getFormData()->getStreet(1)) ?>" title="<?php echo $this->__('Street Address') ?>" id="street_1" class="input-text" />
                </div>

                <div class="input-box input-address">
                    <input  type="text" name="customer_name" id="customer_name" placeholder="<?php echo $this->__('输入收货人姓名') ?>" value="<?php echo $this->escapeHtml($this->getFormData()->getEmail()) ?>" title="<?php echo $this->__('收货人姓名') ?>" class="input-text <?php echo $this->getFieldParams() ?>" />
                </div>    

                <div class="input-box input-address">
                    <input type="text" name="telephone" id="telephone" placeholder="<?php echo $this->__('输入收货电话') ?>" value="<?php echo $this->escapeHtml($this->getFormData()->getTelephone()) ?>" title="<?php echo $this->__('Telephone') ?>" class="input-text" />
                </div>

<!--                <div class="input-box input-address bor">
                    <span class="checked-bor checked-bor2"><input id="checked-opp" class="default_shipping checked-res" type="hidden" name="default_shipping" value="0"/></span><span class="checked-font checked-address"><?php echo $this->__('保存到地址薄') ?></span>
                </div>-->

            </div>
            <input class="default_billing" type="hidden" name="default_billing" value="1" />
        </div>               
    </div>
    <button id="good-btn" type="submit" title="<?php echo $this->__('Submit') ?>" class="button"><span><span><?php echo $this->__('完成注册') ?></span></span>
        </button> 
</form>
<script type="text/javascript">
    //<![CDATA[

    addressInit('cmbProvince', 'cmbCity', 'cmbArea', '湖北', '襄阳市', '襄城区');

    var dataForm = new VarienForm('form-validate', true);
    new RegionUpdater('country', 'region', 'region_id', <?php echo $this->helper('directory')->getRegionJson() ?>, undefined, 'zip');
    //]]>
</script>
